package com.hpdf.constants;

import com.hpdf.utils.web.resultbean.ErrorCode;

public enum ErrorType implements ErrorCode {

    AUTH_PASS_ERROR("2000", "账号密码不匹配"),
    AUTH_ROLE_EMPTY("2001", "账号无有效角色"),
    AUTH_IMGCODE_ERROR("2002", "验证码错误"),
    AUTH_TOKEN_NOT_EXISTS("2003", "授权令牌不存在或已失效"),
    AUTH_TOKEN_ILLEGAL("2004", "授权令牌不合法"),
    AUTH_TOKEN_AUTH_FAIL("2005", "无此权限"),
    AUTH_PASS_WRONG_NUM_OVER("2006","密码输错次数超限,"),
    AUTH_RES_EMPTY("2007","账号无有效资源"),
    AUTH_ORG_EMPTY("2008","账号无有效在组织"),
    AUTH_STATE_ILLEGALITY("2009","账号状态异常"),
    SYSTEM_ERROR("1000", "系统错误"),
    APP_ERROR("1001", "应用错误"),
    BIZ_ERROR("1002", "业务错误:%s"),
    PARAMM_NULL("1003", "入参不能为空:[%s]"),
    OBJECT_NOT_EXISTS("1004", "对象不存在:[%s]"),
    OBJECT_BELONG_ERROR("1005", "对象归属错误:[%s]"),
    RESOURCE_NOT_EXISTS("1006", "访问的资源不存在"),
    PARAM_NOT_VALID("1007", "参数校验失败:%s"),
    CREATE_PAY_ORDER_FAIL("1008","生成支付单信息失败"),
    CREATE_SIGIN_FAIL("1009","支付单签名失败"),
    CACHE_NOT_EXISTS("1010","在缓存中不存在[%s]"),
    SEND_MESSAGE_ERROR("1011","发送验证码失败"),
    /***验证码不匹配*/
    SEND_VERIFI_CODE_ERROR("1012","验证码不匹配"),
    /**验证码失效*/
    SEND_VERIFI_CODE_LESS("1013","验证码失效"),
    PARK_LOT_NOT_EXISTS("1014","停车场记录不存在：%s"),
    PARK_SEND_FAIL("1015","通知失败"),
    BIZ_SUCCESS("8888", "成功");

    private String code;
    private String msg;

    private ErrorType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

}
